package com.nbsaas.boot.common.rest.convert;

import com.nbsaas.boot.common.data.entity.IpVisit;
import com.nbsaas.boot.common.api.domain.simple.IpVisitSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* -列表对象转换器
*/

public class IpVisitSimpleConvert implements Converter<IpVisitSimple, IpVisit> {




@Override
public IpVisitSimple convert(IpVisit source) {
    IpVisitSimple result = new IpVisitSimple();

                result.setDataKey(source.getDataKey());
                result.setIp(source.getIp());
                result.setNum(source.getNum());
                result.setId(source.getId());
                result.setAddDate(source.getAddDate());
                result.setLastDate(source.getLastDate());


    return result;
}

}